package com.chexiehui.jc.entity;

import com.chexiehui.jc.widget.indexbar.bean.BaseIndexPinyinBean;

import java.io.Serializable;

public class CityInfo extends BaseIndexPinyinBean implements Serializable {
    
    private String label;
    private String name;
    private String pinyin;
    private String zip;

    private boolean isTop;//是否是最上面的 不需要被转化成拼音的

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip;
    }

    @Override
    public String getTarget() {
        return pinyin;
    }

    public boolean isTop() {
        return isTop;
    }

    public void setTop(boolean top) {
        isTop = top;
    }

    @Override
    public boolean isNeedToPinyin() {
        return !isTop;
    }

    @Override
    public boolean isShowSuspension() {
        return !isTop;
    }
}
